<!--
题库类型列表
 add by yyp 2019-05-31
-->
<template lang="pug">
  keep-alive
    kalix-table(bizKey="BankCategory" title='题库类型列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="BankCategoryURL"
    v-bind:bizDialog="BankCategoryDialog"
    v-bind:btnList="bankCategoryBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="bankcategorySearch")
      template(slot="tableColumnSlot")
        el-table-column(prop="name" label="题库类型" align="center")
</template>

<script type="text/ecmascript-6">
  import {BankCategoryURL} from '../../config.toml'
  import {bankcategoryConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-bankcategory',
    components: {KalixTable},
    data() {
      return {
        BankCategoryURL: BankCategoryURL,
        tableFields: [
          {prop: 'name', label: '题库类型'}
        ],
        BankCategoryDialog: [
          {id: 'add', dialog: 'bankcategoryAdd'},
          {id: 'edit', dialog: 'bankcategoryEdit'},
          {id: 'view', dialog: 'bankcategoryView'}
        ],
        bankCategoryBtnList: bankcategoryConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
